/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-04-23
 * Time: 20:51
 */

//Scanner scan = new Scanner(System.in);

import java.util.Scanner;

public class TestDemo5 {

    public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100; i++) {

            if(i / 10 == 9) { //判断十位是不是m
                count++;
            }
            if(i % 10 == 9) { //判断个位是不是m
                count++;
            }
        }

        System.out.println(count);
    }
}
